package com.zt.location.modules.base.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.zt.location.modules.base.dao.VehicleDao;
import com.zt.location.modules.base.entity.VehicleEntity;
import com.zt.location.modules.base.service.VehicleService;



@Service("vehicleService")
public class VehicleServiceImpl implements VehicleService {
	@Autowired
	private VehicleDao vehicleDao;
	
	@Override
	public VehicleEntity queryObject(Integer id){
		return vehicleDao.queryObject(id);
	}
	
	@Override
	public List<VehicleEntity> queryList(Map<String, Object> map){
		return vehicleDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return vehicleDao.queryTotal(map);
	}
	
	@Override
	public void save(VehicleEntity vehicle){
		vehicleDao.save(vehicle);
	}
	
	@Override
	public void update(VehicleEntity vehicle){
		vehicleDao.update(vehicle);
	}
	
	@Override
	public void delete(Integer id){
		vehicleDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		vehicleDao.deleteBatch(ids);
	}
	
}
